package com.gxg.demo10.mydemo11.titletest;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.widget.LinearLayout;

import com.gxg.demo10.mydemo11.R;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * 作者：Administrator on 2018/3/9 15:07
 * 邮箱：android_gaoxuge@163.com
 */
public class TitleTest2Activity extends AppCompatActivity {
    @Bind(R.id.lay_header)
    LinearLayout layHeader;
    @Bind(R.id.scv)
    ReboundScrollView scv;
    @Bind(R.id.titlebar)
    TranslucentActionBar titlebar;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_title_test2);
        ButterKnife.bind(this);

        titlebar.setBackgroud(R.color.orange_dft);
        StatusBarUtil.setColorNoTranslucent(this, ContextCompat.getColor(this,R.color.orange_dft));
        titlebar.setData("TitleBar", R.drawable.ic_left_light, "", 0, "", new ActionBarClickListener() {
            @Override
            public void onLeftClick() {
                finish();
            }

            @Override
            public void onRightClick() {

            }
        });
        scv.setOnScrollListener(new ReboundScrollView.onReboundScrollChanged() {
            @Override
            public void onReboundScroll(int l, int t, int oldl, int oldt,int transAlpha) {

            }
        });
//        titlebar.setNeedTranslucent();
    }
}
